//渲染进程
let btn = document.getElementById('btn1')
let btn2 = document.getElementById('btn2')
let input = document.getElementById('input')
let input1 = document.getElementById('input1')
let btn3 = document.getElementById('btn3')
btn.onclick=()=>{
    // alert("你点我了")
    alert(mayApI.version)
}
btn2.onclick = ()=>{
    // alert(input.value)
    //调用saveFile方法传递数据()
    mayApI.saveFile(input.value)
}
//读取D盘中的文件
btn3.onclick = async()=>{
  let data = await  mayApI.readFile()
  alert(data)
  input.value = data
}